<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="'Hello, ' + ${name} + '!'"></title>
    <link rel="stylesheet" href="/webjars/bootstrap/3.3.4/css/bootstrap.css"/>
    <link rel="stylesheet" href="/css/custom.css"/>
    <script src="/webjars/jquery/2.1.3/jquery.js"></script>
    <script src="/webjars/bootstrap/3.3.4/js/bootstrap.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.7/css/bootstrap-dialog.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.7/js/bootstrap-dialog.min.js"></script>
    <script src="/js/test.js"></script>
</head>
<body>
<div class="container">
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">搜索</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="/"> 引擎</a></li>
                </ul>
            </div>
            <!--/.navbar-collapse -->
        </div>
    </div>

    <div class="row" style="margin-top: 100px">
        <div class="col-md-12">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="sr-only" for="extractor">网页内容抽取</label>
                    <div class="input-group">
                        <div class="input-group-addon">网页内容抽取</div>
                        <input type="text" class="form-control" id="extractor" name="extractor" placeholder="url">
                    </div>
                    <span id="helpBlock" class="help-block">可通过URL提取内容.</span>
                </div>
                <div class="form-group">
                    <input type="button" id="extractorBtn" class="btn btn-default" name="extractor" value="extractor"/>
                </div>
            </form>

            <form class="form-horizontal">
                <div class="form-group">
                    <label for="title">Title</label>
                    <input type="text" class="form-control" id="title" placeholder="input your title">
                </div>
                <div class="form-group">
                    <label for="article">Article</label>
                    <textarea name="writeIndex" id="article" cols="30" rows="10" class="form-control"></textarea>
                </div>
                <div class="form-group">
                    <input type="button" class="btn btn-success" id="indexBtn" name="index" value="索引"/>
                    <input type="button" class="btn btn-warning" id="clearBtn" name="clear" value="清空"/>
                </div>
            </form>
        </div>
        <div class="col-md-12">
            <form class="form-inline">
                <div class="form-group">
                    <label for="query">Search</label>
                    <input type="text" class="form-control" id="query" placeholder="Jane Doe">
                </div>
                <div class="form-group">
                    <input type="button" class="btn btn-success" id="searchBtn" name="submit"
                           value="submit"/>
                </div>
            </form>
            <div th:replace="search_table :: table"></div>
        </div>
    </div>
    <hr>
    <footer>
        Built with <a href="http://www.ninjaframework.org">Ninja framework</a>.
    </footer>
</div>

</body>
</html>